<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="h" uri="/syzg-html"%>
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="${ctx}/zenithsun/css/cut-imgList.css" type="text/css" />
<body>
<c:set var="tableIndex" value="1"></c:set>
<div class="modal fade bs-example-modal-lg" id="viewReviewDetailModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">审核过程</h4>
      </div>
      <div class="modal-body" id="modalCore">
        <table id="baseInfo" width="100%" class="table table-bordered" border="0" cellpadding="0" cellspacing="0">
		  <!-- generate code start -->

          <tr>
            <td class="tdBg" width="100"><b>新闻标题</b></td>
            <td>${review.title}</td>

            <td class="tdBg" width="100"><b>状态</b></td>
            <td>
 				<c:if test="${review.state==0}">未审核</c:if>
                <c:if test="${review.state==1}">待审核</c:if>
            	<c:if test="${review.state==2}">审核不通过</c:if>
           		<c:if test="${review.state==3}">审核通过</c:if>
			</td>
          </tr>
           <tr>
            <td class="tdBg" width="100"><b>审核意见</b></td>
            <td colspan="3">${review.comments}</td>
          </tr>
		  <!-- generate code end -->
		</table>
			<h:table cssClass="table table-bordered table-hover table-striped" cssStyle="margin-bottom:-5px;" value="reviewdetail">
				<h:column headerTitle="序号" width="10%">
					<c:out value="${tableIndex}"></c:out>
					<c:set var="tableIndex" value="${tableIndex+1}"></c:set>
                </h:column>
				<h:column headerTitle="时间" width="20%">
                    <fmt:formatDate value="${o.createTime}" pattern="yyyy-MM-dd HH:mm:ss" />
                </h:column>
                <h:column headerTitle="审核人" width="15%">
                    ${o.person.name}
                </h:column>
                <h:column headerTitle="状态" width="15%">
                    <c:if test="${o.state==0}">不通过</c:if>
                    <c:if test="${o.state==1}">通过</c:if>
                </h:column>
                <h:column headerTitle="审核意见" width="40%">
                 	${o.comments}
                </h:column>
			</h:table>
      </div>
      <div class="modal-footer">
      	<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
      </div>
    </div>
  </div>
</div>
</body>
</html>